<?php
use Workerman\Worker;

require_once __DIR__."/../Autoloader.php";

$xml_work = new Worker("XmlProtocols://0.0.0.0:2222");
$xml_work->onMessage=function($connect,$data){
    echo $data,

    $connect->send('0000000121<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><request><module>user</module><action>getInfo</action></request>');
};
Worker::runAll();

